import Vue from 'vue'
import App from './App.vue'
import router from './router'
//导入store
import store from './store';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import {postRequest} from "./utils/api"
import {deleteRequest} from "./utils/api"
import {putRequest} from "./utils/api"
import {getRequest} from "./utils/api"

import Vuex from 'vuex' //引入状态管理
// 封装的四个请求，可以直接使用this.postRequest去使用
Vue.prototype.postRequest = postRequest;
Vue.prototype.deleteRequest = deleteRequest;
Vue.prototype.getRequest = getRequest;
Vue.prototype.putRequest = putRequest;

Vue.prototype.$axios = axios,
//关闭浏览器控制台关于环境一些提示
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(Vuex) 


new Vue({
  // 配置store
  store,
  router,
  render: h => h(App)
}).$mount('#app')
